<?php
function format($size)
{
	$unitArray=array('B', 'KB', 'MB', 'GB');
	$index=0;
	while($size>=1024&&$index<count($unitArray)-1)
	{
		$size=$size/1024;
		$index++;
	}
	return floor($size).''.$unitArray[$index];
}
?>

<b>GUID:</b>
<?php echo $model->guid; ?><br/>
<b>VERSION:</b>
<?php echo $model->version; ?><br/>
<b>NAME:</b>
<?php echo $model->symbolic_name; ?><br />
<b>DESCRIPTION:</b><br />
<textarea rows=10, cols=30 disabled=1><?php echo $model->description; ?></textarea><br/>
<b>FILE SIZE:</b>
<?php echo format($model->size); ?><br/>
<b>TYPE:</b>
<?php echo $model->objectType->type; ?><br/>
<b>UPLOADED START TIME:</b>
<?php echo $model->start_time; ?><br/>
<b>UPLOADED END TIME:</b>
<?php echo $model->end_time; ?><br/><br />
<?php echo CHtml::link('Back', Yii::app()->request->baseUrl.'/manage/viewList?guid='.$model->guid); ?>
